package runInfo;

//import dataAnalysis.NewThreadExample.MessageLoop;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.DecimalFormat;

import runInfo.TestThreadGUI;

public class TestThreadMain {

	/*TO DO:
	 * TODO: estimate rate we are pulling off at
	 * TODO: Change color (or enabledness) of stop & start buttons to show if the data has been saved before
	 * TODO: In plotting, create preferred ranges options (get rid of plotting every Nth element
	 * TODO: display a temperature suggested abv
	 * TODO: last column for notes... will spaces be ok in R?
	 *
	 *
	 */
	public static void main(String[] args) throws InterruptedException {
		Thread threadGUI = new Thread( new TestThreadGUI());
		threadGUI.start();
		Thread threadTemp = new Thread(new TestThreadTemp());
		threadTemp.start();
		
		int counter = 0;
		int maxTime = 10;
		while(threadGUI.isAlive()){
			threadGUI.join(1000); 																//wait max of 1 sec for messageloop thread to finish
		}
		threadTemp.stop();
	}

	
}
